package cn.itsource.wechat.mapper;

import cn.itsource.wechat.domain.WxUser;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.entity.Example;

public interface WxUserMapper extends Mapper<WxUser> {


    default WxUser selectOneByOpenid(String openid){
        //封装条件
        Example example = new Example(WxUser.class);
        example.and().andEqualTo("openid",openid);
        //返回
        return this.selectOneByExample(example);
    }
}
